package com.pengpaishuzi.controller;

import com.pengpaishuzi.domain.Order;
import com.pengpaishuzi.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    @Autowired
    private IOrderService orderService;

    @RequestMapping("save")
    public Order order(Long pid,Long uid){
        return orderService.createOrder(pid,uid);
    }


}
